﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using Microsoft.TeamFoundation.Framework.Client;
using ScrumTable.Common;

#endregion

namespace ScrumTable.DL.Data.TFS.Services.TeamFoundation.Utils
{
    /// <summary>
    /// Contains additional methods for the TeamFoundationIdentity class.
    /// </summary>
    public static class TeamFoundationIdentityUtil
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// Gets the unique id of the given TFS identity.
        /// </summary>
        /// <param name="tfsIdentity">Specifies the </param>
        /// <returns>Returns the unique id of the team foundation identity.</returns>
        public static string GetUniqueId(this TeamFoundationIdentity tfsIdentity)
        {
            PreCondition.AssertNotNull(tfsIdentity, "tfsIdentity");

            return tfsIdentity.TeamFoundationId.ToString("D");
        }

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}